package com.liusaidh.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author liusaidh
 * @date 2024/6/4 20:25
 * @description  自定义异常
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DefinitionException extends RuntimeException {

    protected Integer errorCode;
    protected String errorMsg;

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
